<!DOCTYPE html>
<html>
<#include "../head.html">
<body>
<table class="mc">
    <tr>
        <td class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </td>
        <td class="mc-m">
            <div class="navToggle"></div>
        </td>
        <td class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="评论信息列表">
            <#include "banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
                <div class="toolbor-module search">
                    <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div> 
            </div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>ID</td>
                            <td>用户名</td>
                            <td>添加时间</td>
                            <td>内容</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                        <#list list as item>
                            <tr class="s">
                                <td>${item.id!"-"}</td>
                                <td>${item.username!"-"}</td>
                                <td>${dateformat(item.addtime!0)}</td>
                                <td>${item.comment}</td>
                                <td><#if item.status==0>待审批<#elseif item.status=1>审批通过  <#else> 审批未通过</#if></td>
                                <td>
                                <a href="${request.getContextPath()}/admin/comment/updateComment.html?id=${item.id?c}">审核查看</a>  
                                <a href="#" onClick="javascript:if(confirm('确定要删除吗?删除后将不可恢复')) location.href='deleteComment.html?id=${item.id?c}'">删除评论</a>
                                </td>
                            </tr>
                        </#list>

                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="/admin/cash/cashbank.html" map=param style="style1" />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
                	var url = 'showAllComment.html?search=true';
                    function sousuo(){
                        var sou = "";
                        var username = $("#username").val();
                        if (username!=""&&username!="请输入用户名"){
                            sou += "&username="+username;
                        }
                        if (sou!=""){
                            location.href=url+sou;
                        }
                    }
                </script>
            </div>
        </td>
    </tr>
    <tr>
        <!--尾部--{-->
        <td colspan="3" class="mc-b"><#include "../foot.html"></td>
        <!--尾部--}-->
    </tr>
</table>

</body>
</html>
<#include "../jsPage.html">
